package com.cn.jiyun.service.impl;

import com.cn.jiyun.service.OrderService;
import com.cn.jiyun.entity.pojo.Order;

import com.cn.jiyun.OrderClient;
import com.jiyun.entity.vo.OrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderClient orderClient;
    @Override
    public List<Order> findAll() {
        return orderClient.findAll().getData();
//        return null;
    }

    @Override
    public Order findById(Integer id) {
        return orderClient.findById(id).getData();
//        return null;
    }

}
